package gift4friend.client.startPage;

import com.google.gwt.user.client.ui.VerticalPanel;

import gift4friend.client.ui.Content;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Button;

public class StartPageContent extends Content{
	private VerticalPanel verticalPanel;
	private Label lblNewLabel;
	private Label lblNewLabel_1;
	private VerticalPanel blue_Panel;
	private Label lblNewLabel_2;
	private TextBox textBox;
	private VerticalPanel verticalPanel_1;
	private HorizontalPanel horizontalPanel;
	private Button btnSearch;
	private Label lblTaperLeNom;
	private VerticalPanel ResultPanel_2;
			
	public StartPageContent(){
		verticalPanel = new VerticalPanel();
		this.verticalPanel.setSpacing(20);
		initWidget(this.verticalPanel);
		
		this.verticalPanel_1 = new VerticalPanel();
		this.verticalPanel.add(this.verticalPanel_1);
		
		this.lblNewLabel = new Label("Gift 4 friends est un systeme de recommandation de cadeaux");
		this.verticalPanel_1.add(this.lblNewLabel);
		this.lblNewLabel.setStyleName("startPage_Label1");
		
		this.lblNewLabel_1 = new Label("connecte sur vos reseaux sociaux favoris. Ne cherchez plus des cadeaux pendant des heures et trouver des cadeaux qui ferront plaisirs a vos amis a coup sur.");
		this.verticalPanel_1.add(this.lblNewLabel_1);
		this.lblNewLabel_1.setStyleName("startPage_label2");
		
		this.blue_Panel = new VerticalPanel();
		this.blue_Panel.setStyleName("blueRect_Panel");
		this.verticalPanel.add(this.blue_Panel);
		this.blue_Panel.setSize("100%", "347px");
		
		this.lblNewLabel_2 = new Label("Chercher un ami");
		this.lblNewLabel_2.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		this.lblNewLabel_2.setStyleName("startPage_Label1");
		this.blue_Panel.add(this.lblNewLabel_2);
		this.blue_Panel.setCellVerticalAlignment(this.lblNewLabel_2, HasVerticalAlignment.ALIGN_MIDDLE);
		
		this.horizontalPanel = new HorizontalPanel();
		this.blue_Panel.add(this.horizontalPanel);
		this.blue_Panel.setCellHorizontalAlignment(this.horizontalPanel, HasHorizontalAlignment.ALIGN_CENTER);
		this.horizontalPanel.setWidth("100%");
		
		this.textBox = new TextBox();
		this.horizontalPanel.add(this.textBox);
		this.horizontalPanel.setCellHorizontalAlignment(this.textBox, HasHorizontalAlignment.ALIGN_RIGHT);
		this.blue_Panel.setCellHorizontalAlignment(this.textBox, HasHorizontalAlignment.ALIGN_CENTER);
		this.textBox.setWidth("70%");
		
		this.btnSearch = new Button("Search");
		this.horizontalPanel.add(this.btnSearch);
		
		this.lblTaperLeNom = new Label("Taper le nom d'un ami pour afficher les cadeaux qui lui feront plaisir.");
		this.blue_Panel.add(this.lblTaperLeNom);
		this.blue_Panel.setCellHorizontalAlignment(this.lblTaperLeNom, HasHorizontalAlignment.ALIGN_CENTER);
		
		this.ResultPanel_2 = new VerticalPanel();
		this.verticalPanel.add(this.ResultPanel_2);
	
	}
	
}
